Skip to content

fix: prevent agate type-conflict during catalog merge (#1392)#1428

Open
sd-db wants to merge 3 commits intomainfrom
sd-db/fix/issue-1392-catalog-text-only-columns
Open

fix: prevent agate type-conflict during catalog merge (#1392)#1428
sd-db wants to merge 3 commits intomainfrom
sd-db/fix/issue-1392-catalog-text-only-columns

Conversation

@sd-db
Copy link
Copy Markdown
Collaborator

@sd-db sd-db commented Apr 27, 2026

Summary

Test plan

  • 3 new unit tests covering type forcing, cross-schema merge, and no-warning on empty input
  • 744 unit tests pass; pre-commit clean

…ge conflict (#1392)

Without this, agate's value-driven type inference can mark a metadata
column as Number in one schema and Text in another, causing
catch_as_completed's merge to raise on the conflict during dbt docs generate.
@github-actions
Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  dbt/adapters/databricks
  impl.py 741
Project Total  

This report was generated by python-coverage-comment-action

@sd-db sd-db self-assigned this Apr 28, 2026
@sd-db
Copy link
Copy Markdown
Collaborator Author

sd-db commented Apr 28, 2026

/integration-test

@github-actions
Copy link
Copy Markdown

Integration tests dispatched for PR #1428 by @sd-db. Track progress in the Actions tab.

@github-actions
Copy link
Copy Markdown

Integration results for PR #1428 — UC cluster ✅ success · SQL warehouse ❌ failure · All-purpose cluster ✅ success

Run details.

@sd-db
Copy link
Copy Markdown
Collaborator Author

sd-db commented Apr 28, 2026

The failure is caused by a flaky test where the warehouse is under stress and could not return a response in the expected time period. I re-ran the test locally to be 100% sure + this is in a totally unrelated code path.

tests/functional/adapter/materialized_view_tests/test_changes.py::
  TestMaterializedViewFailOnChanges::test_full_refresh_occurs_with_changes PASSED

Did not want to trigger a full rerun and waste resources.Tests are also run nightly on main so risk is minimal/nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dbt docs generate fails with agate type conflict when schema returns zero rows

1 participant